import { App } from 'vue'
import { appConfig } from '@idmy/core'
import { Modal, ModalButton, ModalPicker } from './modal'
import Message from './message'
import Notification from './notification'
import Dialog from './dialog'
import View from './view/index.vue'
import Enum from './enum/index.vue'
import Dict from './dict/index.vue'
import { Spin } from 'ant-design-vue'
export * from './version'

const install = (app: App, options: any = {}) => {
	// @ts-ignore
	appConfig.component.Spin = Spin
	app.use(Message)
	app.use(Notification)
	app.use(Dialog)
	app.use(Modal)
}

export default {
	install,
}

export { ModalPicker, Modal, ModalButton, View, Enum, Dict }
